package org.flyer.toolFrame.util;

import java.util.Scanner;

public class MenuUtil {
    private static Scanner scanner = new Scanner(System.in);

    public static boolean checkBox(String questionStr) {
        System.out.println(questionStr + " Yes or No(输入除Yes的值均为否)");
        String next = scanner.next();
        if ("Yes".equals(next)) {
            System.out.print("您选择了Yes");
            return true;
        } else {
            System.out.print("您选择了No");
            return false;
        }
    }
}
